<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订单配送表列表</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0" />
    <#include "/view/admin/head.html"/>
    <script type="text/javascript" src="${base}/jstool/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script>
    <script type="text/javascript" src="${base}/jstool/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <link rel="stylesheet" type="text/css" href="${base}/jstool/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" />
    <script type="text/javascript" src="${base}/jstool/bootstrap-select/js/bootstrap-select.min.js"></script>
    <script type="text/javascript" src="${base}/jstool/bootstrap-select/lang/defaults-zh_CN.min.js"></script>
    <link rel="stylesheet" type="text/css" href="${base}/jstool/bootstrap-select/css/bootstrap-select.min.css" />

    <style type="text/css">
        .table-class{
            width:90%;
            text-align: center;
            border:1px solid #afd9ee;
            margin:0 auto;
            margin-top: 50px;
        }
        .list-path{
            height: 50px;
            line-height: 50px;
            background-color: #9acfea;

        }
        table th{
            text-align: center;
            WORD-WRAP: break-word;
            width: 100px;
        }
        table thead tr {
            background-color: #9acfea;
        }
        .table-query{
            /*height: 40px;*/
            /*width:80px;*/
            /*text-align: center;*/
            white-space:nowrap;
            /*position: relative;*/
            float: left;
            display:inherit;
            /*display: inline;*/


        }
        .label-head{
            height: 60px;
            width: 100%;
        }
        .bs-example .input-group{
            width:300px;
            float: left;
            margin-top:20px;

        }
        .bank-label{
            width:25px;
            float: left;
        }
        .label-hidden{
            display: none;
        }
        .panel-body{
            padding-top: 0px;
        }
        .input-group input[type='text']{
            z-index: inherit;
        }
       /* .input-group{
            margin-top:20px;
        }*/
    </style>
    <script type="text/javascript">
        function query(dm){
            var href = "${base}/czjorderdistribution/list.do?";

            href+='orderCode='+$('#orderCode').val();
                    href+='&'

            href+='recipients='+$('#recipients').val();
                    href+='&'

            href+='address='+$('#address').val();
                    href+='&'

            href+='phoneNo='+$('#phoneNo').val();
                    href+='&'

            href+='postalCode='+$('#postalCode').val();
                    href+='&'

            href+='email='+$('#email').val();
                    href+='&'

            href+='message='+$('#message').val();
                    href+='&'

            href+='createTimeStart='+$('#createTimeStart').val({language: 'zh-CN' });
            href+='createTimeEnd='+$('#createTimeEnd').val({language: 'zh-CN' });
                    

            location.href=href;
        }
        $(function() {
            //初始化
                $('#createTimeStart').datetimepicker();
                $('#createTimeEnd').datetimepicker();
        });
    </script>
</head>
<body>

<#include "/view/admin/listnav.html"/>
<div class="table-class">
    <div class="panel panel-default" style="margin: 10px 50px 10px;">
     <div class="panel-body">
        <form class="bs-example bs-example-form" role="form">

            <div class="input-group">
                <span class="input-group-addon">订单编号</span>
                <input type="text" id="orderCode" class="form-control" value="${entity.orderCode!}" placeholder="请输入订单编号">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">收货人</span>
                <input type="text" id="recipients" class="form-control" value="${entity.recipients!}" placeholder="请输入收货人">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">收货地址</span>
                <input type="text" id="address" class="form-control" value="${entity.address!}" placeholder="请输入收货地址">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">手机号</span>
                <input type="text" id="phoneNo" class="form-control" value="${entity.phoneNo!}" placeholder="请输入手机号">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">邮政编号</span>
                <input type="text" id="postalCode" class="form-control" value="${entity.postalCode!}" placeholder="请输入邮政编号">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">邮箱</span>
                <input type="text" id="email" class="form-control" value="${entity.email!}" placeholder="请输入邮箱">
            </div>
                <span class="bank-label">&nbsp;</span>

            <div class="input-group">
                <span class="input-group-addon">买家留言</span>
                <input type="text" id="message" class="form-control" value="${entity.message!}" placeholder="请输入买家留言">
            </div>
                <span class="bank-label">&nbsp;</span>

                <div class="input-group">
                    <span class="input-group-addon">开始创建时间</span>
                    <input type="text" id="createTimeStart" class="form-control" value="<#if (entity.createTimeStart)?? >${entity.createTimeStart?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="createTimeStart" name="createTimeStart" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>
                <div class="input-group">
                    <span class="input-group-addon">结束创建时间</span>
                    <input type="text" id="createTimeEnd" class="form-control" value="<#if (entity.createTimeEnd)?? >${entity.createTimeEnd?string('yyyy-MM-dd HH:mm:ss')}</#if>" id="createTimeEnd" name="createTimeEnd" data-date-format="yyyy-mm-dd hh:ii:ss">
                </div>
                <span class="bank-label">&nbsp;</span>


            <div class="input-group" style="text-align: right;">
                <a class="btn btn-info"  href="javascript:query(this)"><span class="glyphicon glyphicon-search"></span> 查找</a>

            </div>
        </form>
     </div>
    </div>

<#include "/view/admin/opermsg.html"/>


    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>序号</th>
                <th class="label-hidden">主键</th>
                <th>订单编号</th>
                <th>收货人</th>
                <th>收货地址</th>
                <th>手机号</th>
                <th>邮政编号</th>
                <th>邮箱</th>
                <th>买家留言</th>
                <th>创建时间</th>

            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <#list pagination.list as c>
            <tr>
                <td>${(pagination.pageNo-1)*pagination.pageSize+1+c_index}</td>
                        <td class="label-hidden">${c.id!}</td>
                            <td>${c.orderCode!}</td>

                            <td>${c.recipients!}</td>

                            <td>${c.address!}</td>

                            <td>${c.phoneNo!}</td>

                            <td>${c.postalCode!}</td>

                            <td>${c.email!}</td>

                            <td>${c.message!}</td>

                        <td><#if c.createTime?? >${c.createTime?string('yyyy-MM-dd HH:mm:ss')}</#if></td>

                <td>
                    <a href="${base}/czjorderdistribution/detail.do?id=${c.id!}" class="btn btn-primary">详情</a>
                    <a href="${base}/czjorderdistribution/add.do?id=${c.id!}" class="btn btn-primary">修改</a>
                    <a href="javascript:checkDelete('${base}/czjorderdistribution/delete.do?id=${c.id!}')" class="btn btn-primary">删除</a>
                </td>
            </tr>


        </#list>
        <#if 0==pagination.totalCount>
            <tr>
                <td colspan="7" style="color: red"> 没有相关数据 </td>
            </tr>
        </#if>
        <tr>
            <td colspan="10">
                <div style="text-align:left;margin-left: 50px;">
                    <a href="${base}/czjorderdistribution/add.do" class="btn btn-primary">新增</a>
                </div>
            </td>
        </tr>





        </tbody>
    </table>
        <!--<span style="text-align: left"> <a href="#" class="btn btn-primary">新增</a></span>-->
    <#include "/view/admin/pagination.html"/>


</div>
<script>
    function setPage(pageNo,pageSize){
        var href = "${base}/czjorderdistribution/list.do?";

            href+='orderCode='+$('#orderCode').val()+"&";

            href+='recipients='+$('#recipients').val()+"&";

            href+='address='+$('#address').val()+"&";

            href+='phoneNo='+$('#phoneNo').val()+"&";

            href+='postalCode='+$('#postalCode').val()+"&";

            href+='email='+$('#email').val()+"&";

            href+='message='+$('#message').val()+"&";

            href+='createTimeStart='+$('#createTimeStart').val();
            href+='createTimeEnd='+$('#createTimeEnd').val();

        href+="&pageNo="+pageNo;
        href+="&pageSize="+pageSize;
        location.href=href;
    }
    function checkDelete(url){
        if (window.confirm("确认删除吗?")) {
            location.href=url;
        }
    }

</script>

</body>
</html>
